home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 2: CDPD 1 / Almathera Ten on Ten - Disc 2: CDPD 1.iso / pd / 276-300 / 285 / liner / source / sure.h < prev    next >
C/C++ Source or Header  |  1995-03-14  |  895b  |  37 lines

  1. AreYouSure(ReqWindow)      /*Displays an ARE YOU SURE? requester and waits*/
  2. struct Window *ReqWindow;  /*for an OK or CANCEL. (Uses AutoRequest() )*/
  3. {
  4.    struct IntuiText Body,Positive,Negative;
  5.  
  6.    Body.FrontPen=2;
  7.    Body.BackPen=1;
  8.    Body.DrawMode=JAM1;
  9.    Body.LeftEdge=8;
  10.    Body.TopEdge=8;
  11.    Body.ITextFont=NULL;
  12.    Body.IText="Are you sure?";
  13.    Body.NextText=NULL;
  14.  
  15.    Positive.FrontPen=2;
  16.    Positive.BackPen=1;
  17.    Positive.DrawMode=JAM1;
  18.    Positive.LeftEdge=6;
  19.    Positive.TopEdge=3;
  20.    Positive.ITextFont=NULL;
  21.    Positive.IText="OK";
  22.    Positive.NextText=NULL;
  23.  
  24.    Negative.FrontPen=2;
  25.    Negative.BackPen=1;
  26.    Negative.DrawMode=JAM1;
  27.    Negative.LeftEdge=6;
  28.    Negative.TopEdge=3;
  29.    Negative.ITextFont=NULL;
  30.    Negative.IText="Cancel";
  31.    Negative.NextText=NULL;
  32.  
  33.      return(AutoRequest(ReqWindow,&Body,&Positive,&Negative,NULL,NULL,
  34.                            180,60));
  35. }
  36.  
  37.